<aside class="main-sidebar">
    <section class="sidebar">
        <div class="user-panel">
            <div class="pull-left image" style="height:45px;"></div>
            <div class="pull-left info" style="left: 0;">
                <p>{{ Auth::user()->username }}</p>
                <a href="{{ url('admin/logout') }}">退出</a>
            </div>
        </div>

        {{--<form action="#" method="get" class="sidebar-form">--}}
        {{--<div class="input-group">--}}
        {{--<input type="text" name="q" class="form-control" placeholder="Search...">--}}
        {{--<span class="input-group-btn">--}}
        {{--<button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>--}}
        {{--</button>--}}
        {{--</span>--}}
        {{--</div>--}}
        {{--</form>--}}

        <ul class="sidebar-menu">
            @foreach($AdminNavigation->roots() as $item)
                <li@lm-attrs($item) @if($item->hasChildren())class="treeview"@endif @lm-endattrs>
                @if($item->link)
                    <a@lm-attrs($item->link) @lm-endattrs href="{!! $item->url() !!}">{!! $item->title !!}</a>
                @else
                    {!! $item->title !!}
                @endif
                @if($item->hasChildren())
                    <ul class="treeview-menu">
                        @include(config('laravel-menu.views.bootstrap-items'), ['items' => $item->children()])
                    </ul>
                @endif
                </li>
            @endforeach
        </ul>
    </section>
</aside>
